this test gets a value from a busIn and changes am output PWM frequency based on the busIn value. outputs frequency to command line as well.

circuit setup:
connect a pushbutton between 3.3v and pins 25, 24, 23, and 18. A pull down resistor is optional.
connect pin 21 to oscilloscope or to audio amplifier to observe effect

